import Vuex from 'vuex'
import Vue from 'vue'

Vue.use(Vuex);
export default new Vuex.Store({
    state: {
        userData: {},
        isLoading:false
    },
    mutations: {
        setUserData (state, data) {
            state.userData = data
        },
        clearUserData(state){
            state.userData = null
        },
        updateLoadingStatus(state, isLoading) {
            state.isLoading = isLoading;
        }
    }
})
